﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="FoldersControlAR.ascx.cs" Inherits="FoldersControlAR" %>


<asp:UpdatePanel ID="up1" runat="server">
    <ContentTemplate>
    
        <div class="aligning  allWidthWithMargins" style="margin-top:0px;margin-bottom:0px;">
            <asp:HiddenField ID="hdID" runat="server" Value="" />   
            
            
            <div class="clearing" style="height:20px;width:1px;"></div>
            
            <div class="aligning  allWidthWithMargins" style="border:solid 1px blue;">

            <div class="clearing" style="height:10px;width:1px;"></div>

           <%-- <div class="floating" style="font-size:1px;width:10px;height:1px;"></div>

            <div class="floating aligning direction" style="width:40px;">
                
                <asp:Label ID="lblPathHead" runat="server" Text="&nbsp;المسار :" ForeColor="#29499c" Width="50px" Font-Size="12px" ></asp:Label>
                
                
            </div>

            <div class="floating aligning direction" style="width:600px;">
                <asp:TextBox ID="lblPath" runat="server" Text="/" ForeColor="Black"  Font-Size="12px" ReadOnly="true" Width="600px"></asp:TextBox>
            </div>--%>

            
                

            <div class="clearing" style="height:30px;width:1px;"></div>

            <div class="floating" style="font-size:1px;width:10px;height:1px;"></div>

             <asp:Panel ID="pnlTree" runat="server" Width="230px"   ScrollBars="Auto" CssClass="floating" style="display:none;">
                
            
                <asp:TreeView ID="trNew" runat="server" AutoGenerateDataBindings="false" 
                    Font-Size="12px" onselectednodechanged="trNew_SelectedNodeChanged" >
                    <NodeStyle Height="20" />
                    <DataBindings>
                        <asp:TreeNodeBinding TextField="FolderNameAR" ValueField="ID" ImageUrlField="FolderImageUrlSmall" />
                    
                    </DataBindings>
                </asp:TreeView>
                
                <div class="clearing"></div>
            </asp:Panel>
            
            <div class="floating" style="width:140px;height:1px;font-size:1px;"></div>

            <asp:Panel ID="pnlFolders" runat="server" Width="550px" ScrollBars="Auto" CssClass="floating">

            
            
            <asp:ListView ID="dtlFolders" runat="server" DataKeyNames="ID"  OnItemEditing="dtlFolders_ItemEditing">
              
              
                <LayoutTemplate>
                    <div id="itemPlaceHolder" runat="server"></div> <%--class="floating allWidthWithMargins" style="margin-left:30px;margin-right:30px;border-color:Yellow;border-width:1px;border-style:solid;" runat="server" id="itemPlaceHolder"></div>--%>
                </LayoutTemplate>
               
                <ItemTemplate>
                    <div class="floating" style="width:130px;text-align:center;margin-bottom:30px;">
                    <asp:Button ID="imgFolder" runat="server" Text =''   style='<%# "margin-left:10px;margin-right:10px;Width:50px;height:50px;border:none;cursor:pointer;Background:url(" + getBackImage ( Eval ("FolderImageUrl").ToString()) + ") no-repeat;" %>' CommandName="Edit" CausesValidation="false"  />
                    <div class="clearing"></div>
                    <asp:Label ID="lblTitle" runat="server"  Text='<%# getFolderNameBack(Container.DataItem) %>' style="margin-left:10px;margin-right:10px;width:50px;text-align:center;" Font-size="16px"></asp:Label>
                    
                    <div class="clearing"></div>
                    </div>
                     
               </ItemTemplate>
               
               
            </asp:ListView>
              <div class="clearing"></div>
            </asp:Panel>
            <div class="clearing" style="width:1px;height:30px;"></div>
            </div>
            
        
            <div class="clearing" style="width:1px;height:10px;"></div>
        </div>
    
    
    </ContentTemplate>
</asp:UpdatePanel>
